import { Tag } from '@/interface'
//头部标签页
//定义state
export type TagState = {
  tags: Array<Tag>
}
export const state: TagState = {
  tags: []
}
//定义mutations
export const mutations = {
  // 设置 头部标签页
  setTags(state: TagState, tags: Tag[]) {
    state.tags = tags
  },
}
//定义getters
export const getters = {
  getTags(state: TagState) {
    return state.tags
  },
}
//定义actios
export const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}